#include "filemod.h"

#include <utime.h>
#include <sys/stat.h>

FileModificationTime::FileModificationTime(const std::string & file) : time(0)
{
	struct stat fileStat;
	int exists = stat(file.c_str(), &fileStat);
	if (exists >= 0)
		time = fileStat.st_mtime; 
}
